package com.dhcy.mqtt.par.ht;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;


@Data
@ApiModel(value = "设备新增修改", reference = "设备新增修改")
public class EquipmentAddPar {

    @ApiModelProperty(value = "设备id", dataType = "Integer ", example = "")
    private Integer id;
    /**
     * 设备编码 (01:氚 02:气溶胶 03:中子 04:伽马)
     */
//    @NotBlank(message = "设备编码不能为空")
//    @ApiModelProperty(value = "设备编码", dataType = "String ", example = "")
//    private String code;
//    @NotBlank(message = "设备名称不能为空")
//    @ApiModelProperty(value = "设备名称", dataType = "String ", example = "")
//    private String name;
    @NotBlank(message = "设备编号不能为空")
    @ApiModelProperty(value = "设备编号", dataType = "String ", example = "")
    private String number;
//    @ApiModelProperty(value = "设备是否在线", dataType = "String ", example = "")
//    private String online;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", dataType = "Date ", example = "")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间", dataType = "Date ", example = "")
    private Date updateTime;

}
